import request from '@/utils/request'
// 获取城市列表数据
export const getCity = () => {
  return request.get(`/area/city?level=${1}`)
}
// 获取城市下区数据
export const getCity2 = () => {
  return request.get(`/area/city?level=${2}`)
}
// 查询房源数据
const value = localStorage.getItem('value - h5') || 'AREA|88cff55c-aaa4-e2e0'
export const realRstate = () => {
  return request.get(`/area/map?id=${value}`)
}

// 热门城市
export const getHotCity = () => {
  return request('/area/hot')
}
